.pagination {
  display: flex;
  justify-content: center;
  list-style-type: none;
  gap: 4px;
  margin: 40px auto 100px;
  width: 228px;
  height: 24px;
  box-sizing: border-box;

  @media screen and (max-width: 395px) {
    margin: 40px auto 80px;
  }
  &.hidden_pagination {
    display: none;
  }

  li {
    a {
      justify-content: center;
      display: flex;
      width: 27px;
      height: 24px;
      text-decoration: none;
      color: var(--input-text-color);
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      font-size: 16px;
      line-height: 22.4px;
    }
  }

  .active {
    text-align: center;
    font-weight: 500;
    border-radius: 4px;
    color: var(--input-text-color);
    background-color: var(--pagination-activ-background-color);
  }

  .break-me {
    cursor: default;
  }

  .prev,
  .next {
    margin: 0 16px;

    &:hover {
      background-color: var(--pagination-activ-background-color);
      border-radius: 4px;
    }
  }
}

.page:hover {
  border-bottom: var(--pagination-hover-strip);
}

ul {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}
